home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / ISSUE20 / CLINIC / TSTCHKU3.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-01-27  |  710 b   |  39 lines

  1. unit TstChkU3;
  2.  
  3. interface
  4.  
  5. uses
  6.   WinProcs, WinTypes, Messages, SysUtils, Classes, Graphics, Controls,
  7.   Forms, Dialogs, NewChk3, StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Button1: TButton;
  12.     Button2: TButton;
  13.     NewCheck3: TNewCheck3;
  14.     procedure NewCheck3KeyDown(Sender: TObject; var Key: Word;
  15.       Shift: TShiftState);
  16.   private
  17.     { Private declarations }
  18.   public
  19.     { Public declarations }
  20.   end;
  21.  
  22. var
  23.   Form1: TForm1;
  24.  
  25. implementation
  26.  
  27. {$R *.DFM}
  28.  
  29. procedure TForm1.NewCheck3KeyDown(Sender: TObject; var Key: Word;
  30.   Shift: TShiftState);
  31. begin
  32.   case Key of
  33.     vk_Up: NewCheck3.Caption := 'Up';
  34.     vk_Down: NewCheck3.Caption := 'Down';
  35.   end;
  36. end;
  37.  
  38. end.
  39.